package com.ant.storage.controller;


import com.ant.storage.common.ResultPage;
import com.ant.storage.dto.BookkeepingDto;
import com.ant.storage.service.IBookkeepingService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hzd
 * @since 2024-06-13
 */
@RestController
@RequestMapping("/bookkeeping")
public class BookkeepingController {

    @Autowired
    private IBookkeepingService bookkeepingService;

    @ApiOperation(value = "获取出入记录列表")
    @GetMapping("/getBookkeepingList")
    public ResultPage getBookkeepingList(BookkeepingDto dto) {
        return ResultPage.success("获取成功", bookkeepingService.queryList(dto));
    }
}
